<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>05vue-键盘修饰符</title>
    <script type="text/javascript" src="static/vue.min.js"></script>
</head>
<body>
<div id="vue">
    Login:<input type="text" @keydown.enter="login()">

</div>
<script>
    new Vue({
        el: "#vue",
        data: {},
        methods: {
            login: function () {
                alert("ccccc")
            }
        }
    });
</script>
</body>
</html>